home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / files / read < prev    next >
Encoding:
Text File  |  1992-12-17  |  912 b   |  18 lines

  1.           read fileId
  2.  
  3.           read fileId nonewline
  4.  
  5.           read fileId numBytes
  6.                In  the first form, all of the remaining bytes are read
  7.                from the file given by fileId; they are returned as the
  8.                result of the command.  If nonewline is specified as an
  9.                additional argument, then the  last  character  of  the
  10.                file  is  discarded  if  it is a newline.  In the third
  11.                form, the extra argument specifies how  many  bytes  to
  12.                read;   exactly  this  many  bytes  will  be  read  and
  13.                returned, unless there are fewer  than  numBytes  bytes
  14.                left in the file; in this case, all the remaining bytes
  15.                are returned.  FileId must be stdin or the return value
  16.                from  a  previous call to open; it must refer to a file
  17.                that was opened for reading.
  18.